package cc.customer.web.center.saleManage;

import cc.customer.common.domain.QueryRequest;
import cc.customer.saleManage.domain.DydisRecord;
import cc.customer.saleManage.services.SaleDydisRecordServices;
import cc.customer.web.sys.controller.base.BaseController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**外接电话处理**/
@Controller
@RequestMapping(value = "saleDydisRecord")
public class SaleDydisRecordController extends BaseController {

    private static final Logger logger = LoggerFactory.getLogger(SaleDydisRecordController.class);

    @Autowired
    private SaleDydisRecordServices dydisRecordServices;
    @RequestMapping(value = "getAllDydiaRecord",method = {RequestMethod.POST})
    @ResponseBody
    public Map<String, Object> getAllDydiaRecord(DydisRecord dydisRecord, QueryRequest request){
        return this.selectByPageNumSize(request,()->this.dydisRecordServices.selectAllDydisRecord(dydisRecord));
    }

}
